import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
var DetailFormComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(DetailFormComponentViewmodelForm, _super);
    function DetailFormComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'name_127b12ce_sy34',
            name: "{{name_127b12ce_sy34}}",
            binding: 'name',
            updateOn: 'blur',
            defaultI18nValue: '姓名',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "name", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'gender_7b5b1853_unhu',
            name: "{{gender_7b5b1853_unhu}}",
            binding: 'gender',
            updateOn: 'blur',
            defaultI18nValue: '性别',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "gender", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'contactInfo_2e04e263_9ppl',
            name: "{{contactInfo_2e04e263_9ppl}}",
            binding: 'contactInfo',
            updateOn: 'blur',
            defaultI18nValue: '联系电话',
            validRules: [
                {
                    type: 'required',
                    constraints: [true],
                },
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "contactInfo", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'landlineNum_0e9dede5_yrc3',
            name: "{{landlineNum_0e9dede5_yrc3}}",
            binding: 'landlineNum',
            updateOn: 'blur',
            defaultI18nValue: '座机号',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "landlineNum", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'email_4e639da6_ww8l',
            name: "{{email_4e639da6_ww8l}}",
            binding: 'email',
            updateOn: 'blur',
            defaultI18nValue: '邮箱',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "email", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'employeeLevel_EmployeeLevel_Name_001e64f0_eczq',
            name: "{{employeeLevel_EmployeeLevel_Name_001e64f0_eczq}}",
            binding: 'employeeLevel.employeeLevel_Name',
            updateOn: 'blur',
            defaultI18nValue: '职级名称',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "employeeLevel_EmployeeLevel_Name", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'employeeLevel_EmployeeLevel_SortOrder_261268a7_m53i',
            name: "{{employeeLevel_EmployeeLevel_SortOrder_261268a7_m53i}}",
            binding: 'employeeLevel.employeeLevel_SortOrder',
            updateOn: 'blur',
            defaultI18nValue: '职级等级',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "employeeLevel_EmployeeLevel_SortOrder", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'organization_Organization_Name_43599911_n0si',
            name: "{{organization_Organization_Name_43599911_n0si}}",
            binding: 'organization.organization_Name',
            updateOn: 'blur',
            defaultI18nValue: '组织名称',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "organization_Organization_Name", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'organization_Organization_OrgType_37b7e65a_39jq',
            name: "{{organization_Organization_OrgType_37b7e65a_39jq}}",
            binding: 'organization.organization_OrgType',
            updateOn: 'blur',
            defaultI18nValue: '组织类型',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "organization_Organization_OrgType", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'organization_Organization_OwnerID_79560701_6hyy',
            name: "{{organization_Organization_OwnerID_79560701_6hyy}}",
            binding: 'organization.organization_OwnerID',
            updateOn: 'blur',
            defaultI18nValue: '所在单位',
            validRules: [
                {
                    type: 'matches',
                    constraints: [''],
                }
            ]
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DetailFormComponentViewmodelForm.prototype, "organization_Organization_OwnerID", void 0);
    DetailFormComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '人员',
            enableValidate: true
        }),
        Injectable()
    ], DetailFormComponentViewmodelForm);
    return DetailFormComponentViewmodelForm;
}(Form));
export { DetailFormComponentViewmodelForm };
